package cn.edu.nju.software.action.admin;

import cn.edu.nju.software.service.intf.AdminService;

import com.opensymphony.xwork2.ActionSupport;

@SuppressWarnings("serial")
public class OperateUserAction extends ActionSupport {
	
	private String signInName;
	private int code;
	private AdminService adminService;
	
	public void setSignInName(String signInName) {
		this.signInName = signInName;
	}
	
	public void setCode(int code) {
		this.code = code;
	}

	public void setAdminService(AdminService adminService) {
		this.adminService = adminService;
	}
	
	@Override
	public String execute() throws Exception {
		adminService.operateUser(signInName, code);
		return SUCCESS;
	}

}
